package com.wanghuadi.service;

import com.wanghuadi.beans.Student;
import com.wanghuadi.beans.Type;
import com.wanghuadi.mapper.StudentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class StudentServiceImpl implements  StudentService{

    @Resource
    private StudentMapper studentMapper;

    public List<Student> findAll(Map<String, Object> map) {
        return studentMapper.findAll(map);
    }

    public Student findByStudentById(Integer id) {
        return studentMapper.findByStudentById(id);
    }

    public List<Type> queryType() {
        return studentMapper.queryType();
    }

    public void updateStudent(Student student) {
        studentMapper.updateStudent(student);
    }
}
